<?php /* Smarty version 2.6.26, created on 2018-08-23 06:55:50
         compiled from D:%5Cwamp64%5Cwww%5CphotoWeb/templates/InterPhoto/mydesk.upload.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'GetSystemInfo', 'D:\\wamp64\\www\\photoWeb/templates/InterPhoto/mydesk.upload.tpl', 12, false),array('modifier', 'GetUrl', 'D:\\wamp64\\www\\photoWeb/templates/InterPhoto/mydesk.upload.tpl', 18, false),array('modifier', 'cat', 'D:\\wamp64\\www\\photoWeb/templates/InterPhoto/mydesk.upload.tpl', 29, false),array('modifier', 'InterEncode', 'D:\\wamp64\\www\\photoWeb/templates/InterPhoto/mydesk.upload.tpl', 29, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="main">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "mydesk.userpanel.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="md_rightbox">
<h2><?php if ($this->_tpl_vars['image']['imageid']): ?><?php echo $this->_tpl_vars['lan_edit']; ?>
<?php else: ?><?php echo $this->_tpl_vars['lan_publish']; ?>
<?php endif; ?><?php echo $this->_tpl_vars['lan_image']; ?>
</h2>
<?php echo ((is_array($_tmp='')) ? $this->_run_mod_handler('GetSystemInfo', true, $_tmp) : GetSystemInfo($_tmp)); ?>


<div id="md_rightbox_main">

<?php echo $this->_tpl_vars['Editor']; ?>


<form enctype="multipart/form-data" method="post" action="<?php echo ((is_array($_tmp='mydesk.upload.php')) ? $this->_run_mod_handler('GetUrl', true, $_tmp) : GetUrl($_tmp)); ?>
">
<input type="hidden" name="action" value="<?php if ($this->_tpl_vars['image']['imageid']): ?>updateimage<?php else: ?>insertimage<?php endif; ?>" />
<input type="hidden" name="imageid" value="<?php echo $this->_tpl_vars['image']['imageid']; ?>
" />
<input type="hidden" name="path" value="<?php echo $this->_tpl_vars['image']['path']; ?>
" />
<input type="hidden" name="actived" value="<?php echo $this->_tpl_vars['image']['actived']; ?>
" />
<input type="hidden" name="filename" value="<?php echo $this->_tpl_vars['image']['filename']; ?>
" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="110"><?php if ($this->_tpl_vars['image']['imageid']): ?><?php echo $this->_tpl_vars['lan_browse']; ?>
<?php echo $this->_tpl_vars['lan_image']; ?>
<?php else: ?><?php echo $this->_tpl_vars['lan_upload']; ?>
<?php echo $this->_tpl_vars['lan_image']; ?>
<?php endif; ?>:&nbsp;</td>
<td>
<?php if ($this->_tpl_vars['image']['imageid']): ?>
<?php if ($this->_tpl_vars['image']['actived']): ?><a href="<?php echo ((is_array($_tmp='InterPhoto.php')) ? $this->_run_mod_handler('GetUrl', true, $_tmp, 'id', $this->_tpl_vars['image']['imageid']) : GetUrl($_tmp, 'id', $this->_tpl_vars['image']['imageid'])); ?>
" target="_blank"><?php endif; ?><img src="InterPhoto.thumbnail.php?file=<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['image']['path'])) ? $this->_run_mod_handler('cat', true, $_tmp, "/1/") : smarty_modifier_cat($_tmp, "/1/")))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['image']['filename']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['image']['filename'])))) ? $this->_run_mod_handler('InterEncode', true, $_tmp) : InterEncode($_tmp)); ?>
"  onMouseMove="ShowBigImage();" class="thumbnail" /><?php if ($this->_tpl_vars['image']['actived']): ?></a><?php endif; ?><BR><BR>
<?php else: ?>
<input name="imagefile" type="file" size="40" /> <span class="red">* <?php echo $this->_tpl_vars['lan_must']; ?>
</span><BR><span class="lightgrey"><?php echo $this->_tpl_vars['lan_onlyjpgfile']; ?>
</span><BR><BR>
<?php endif; ?>
</td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_belongto']; ?>
<?php echo $this->_tpl_vars['lan_category']; ?>
:&nbsp;</td>
<td><?php echo $this->_tpl_vars['categoryselect']; ?>
 <span class="red">* <?php echo $this->_tpl_vars['lan_must']; ?>
</span></td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_image']; ?>
<?php echo $this->_tpl_vars['lan_title']; ?>
:&nbsp;</td>
<td><input type="text" name="title" size="40" value="<?php echo $this->_tpl_vars['image']['title']; ?>
" /> <span class="red">* <?php echo $this->_tpl_vars['lan_must']; ?>
</span></td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_image']; ?>
<?php echo $this->_tpl_vars['lan_description']; ?>
:&nbsp;</td>
<td><textarea name="description" style="height:160px;width:570px;" id="description658"><?php echo $this->_tpl_vars['image']['description']; ?>
</textarea><BR></td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_meta']; ?>
:&nbsp;</td>
<td><input type="text" name="keywords" size="40" value="<?php echo $this->_tpl_vars['image']['keywords']; ?>
" /></td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_image']; ?>
<?php echo $this->_tpl_vars['lan_linkurl']; ?>
:&nbsp;</td>
<td><input type="text" name="url" size="40" value="<?php echo $this->_tpl_vars['image']['url']; ?>
" /></td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_forsale']; ?>
:&nbsp;</td>
<td><input type="checkbox" name="sale" value="1"  <?php if ($this->_tpl_vars['image']['sale']): ?>CHECKED<?php endif; ?> />&nbsp;<b><?php echo $this->_tpl_vars['lan_yes']; ?>
:</b>&nbsp;&nbsp;<span class="lightgrey"><?php echo $this->_tpl_vars['lan_forsalenote']; ?>
</span></td>
</tr>
<tr>
<td><?php echo $this->_tpl_vars['lan_image']; ?>
<?php echo $this->_tpl_vars['lan_price']; ?>
:&nbsp;</td>
<td><input type="text" name="price" size="20" value="<?php echo $this->_tpl_vars['image']['price']; ?>
" /></td>
</tr>


<tr>
<td>&nbsp;</td>
<td><BR>
<input type="submit" value=" &nbsp;<?php echo $this->_tpl_vars['lan_submit']; ?>
&nbsp; " />
</td>
</tr>
</table>
</form>



</div>
</div>

</td>
</tr>
</table>
</div>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>